import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    viewBtn: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '关键词',
        prop: 'keyword',
        overHidden: true,
        hide: true,
        search: true,
        editDisplay: false,
        addDisplay: false,
      },
      {
        label: "申报时间",
        prop: "createTime",
        hide: false,
        type: "datetime",
        format: "yyyy-MM-dd HH:mm:ss",
        valueFormat: "yyyy-MM-dd HH:mm:ss",
        editDisplay: false,
        addDisplay: false,
        width: 200,
        hide: true,
        search: true,
      },
      {
        label: '需求方',
        prop: 'p1',
        overHidden: true,
      },
      {
        label: '联系人',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        },
        overHidden: true,
      },
      {
        label: '联系方式',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '船舶类型',
        prop: 'p4',
        overHidden: true,
        hide: true,
        search: true,
        type: 'select',
      },
      {
        label: '货物类型',
        prop: 'p4',
        overHidden: true,
        search: true,
        type: 'select',
      },
      {
        label: '处理人',
        prop: 'p5',
        overHidden: true
      },
      {
        label: '船名',
        prop: 'p6',
      },
      {
        label: '载重吨',
        prop: 'p7',
      },
      {
        label: '始发港',
        prop: 'p8',

      },
      {
        label: '目的港',
        prop: 'p9',
      },
      {
        label: '卸货码头',
        prop: 'p10',
      },
      {
        label: '开始时间',
        prop: 'p11',
      },
      {
        label: '结束时间',
        prop: 'p12',
      },
      {
        label: '需求状态',
        prop: 'p13',
        type: 'select',
        search: true
      },
    ]
  }
}
